package com.google.gwt.sample.dynatablerf.client.events;

import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.sample.dynatablerf.shared.ProjetoProxy;
import com.google.gwt.user.client.ui.TabLayoutPanel;

public class GoToMaterialListEvent extends
		GwtEvent<GoToMaterialListEventHandler> {

	public static Type<GoToMaterialListEventHandler> TYPE = new Type<GoToMaterialListEventHandler>();

	private ProjetoProxy projetoProxy;
	private TabLayoutPanel container;
	private EventBus eventBus;
	
	public GoToMaterialListEvent(ProjetoProxy ProjetoProxy, TabLayoutPanel container, EventBus eventBus) {

		super();
		this.projetoProxy = ProjetoProxy;
		this.container = container;
		this.eventBus = eventBus;
	}

	@Override
	protected void dispatch(GoToMaterialListEventHandler handler) {

		handler.onGoToMaterialList(this);
	}

	@Override
	public Type<GoToMaterialListEventHandler> getAssociatedType() {

		return TYPE;
	}

	public ProjetoProxy getProjetoProxy() {

		return projetoProxy;
	}

	public void setProjetoProxy(ProjetoProxy ProjetoProxy) {

		this.projetoProxy = ProjetoProxy;
	}

	public TabLayoutPanel getContainer() {
		return container;
	}

	public void setContainer(TabLayoutPanel container) {
		this.container = container;
	}

	public EventBus getEventBus() {
		return eventBus;
	}

	public void setEventBus(EventBus eventBus) {
		this.eventBus = eventBus;
	}

}
